﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using PloobsEngine;
using PloobsEngine.SceneControl;
using PloobsEngine.Utils;

namespace Etapa1.Screens
{
    public class PerlinNoiseScreen : IScreen
    {
        public PerlinNoiseScreen()
            : base()
        {            
        }                

        Texture2D staticRandomTex;        
        public override void Draw(GameTime gameTime)
        {

            staticRandomTex = TextureCreator.CreatePerlinNoiseTexture(800, 600, 0.015f, 1.2f, 0.55f, 8);
            //staticRandomTex.Save("perlinnoise.png", ImageFileFormat.Png);
            EngineStuff.SpriteBatch.Begin();
            EngineStuff.SpriteBatch.Draw(staticRandomTex, Vector2.Zero, Color.White);
            EngineStuff.SpriteBatch.End();

            base.Draw(gameTime);

        }        
    }
        
}

